STEP 6: Hm... our loop always makes 5 dragons. Let's use the user's input!

  • Find the line that begins your loop. It should look like this: for·counter·in·range(5):
  • Change the number inside range() from 5 to the variable dragon_count.
  • Click Run to see our program make as many dragons as you'd like!

To navigate the page using the TAB key, first press ESC to exit the code editor.

# THIS ACTIVITY IS IN PREVIEW ONLY MODE
  • Run Code
  • Submit Work
  • Next Activity
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)